import org.hibernate.Session;

import br.com.jcwinfo.conexao.HibernateUtil;

public class conexao {
	
	public static void main(String[] args) {
		
		Session sessao = null;
		
		try {
			
			sessao = HibernateUtil.getSession().openSession();
			System.out.println("System online");
			
		} finally {
			
			sessao.close();
			System.out.println("System offline");
			
		}
		
	}

}
